<%@page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>
<%@include file="/taglibs.jsp"%>
<%@taglib uri="http://displaytag.sf.net/el" prefix="display"%>
<style type="text/css">
@import url("${ctx}/resource/admin/displaytag/zdisplaytag.css");
@import url("${ctx}/resource/admin/displaytag/alternative.css");
</style>
<html>
	<body>
		<display:table name="list"
			requestURI="list.html" class="list"
			id="row" cellspacing="0" cellpadding="0" pagesize="5">
			<display:column style="width:60px;" media="html" title="编号">
				<c:out value="${row_rowNum}"/>
			</display:column>
			<display:column title="古玩名称" property="productName"/>
			<display:column title="正面">
				<img style="width:100px;" src="${ctx}/${row.productPic1}"/>
			</display:column>
			<display:column title="侧面">
				<img style="width:100px;" src="${ctx}/${row.productPic2}"/>
			</display:column>
			<display:column title="上面">
				<img style="width:100px;" src="${ctx}/${row.productPic3}"/>
			</display:column>
			<display:column title="底面">
				<img style="width:100px;" src="${ctx}/${row.productPic4}"/>
			</display:column>
			<display:column title="内容" property="content"/>
			<display:column title="专家鉴定意见" property="comments"/>
			<display:column title="标价" property="price"/>
			<display:column title="是否卖出" property="sellStatus"/>
			<display:column title="状态" property="status"/>
			<display:column title="分类" property="typesName"/>
			<display:column title="查看" style="width:40px;">
				<a href="${ctx}/admin/product/detail?productId=${row.id}"></a>
			</display:column>
			<display:column title="修改" style="width:40px;">
				<img src="${ctx}/resource/admin/images/pencil.png"
					onclick="return modifyOne('${row.id}');" style="cursor:hand;"/>
			</display:column>
			<display:column title="删除" style="width:40px;">
				<img src="${ctx}/resource/admin/images/delete.png"
					onclick="return deleteOne('${row.id}');" style="cursor:hand;"/>
			</display:column>
		<c:if test="${1==1 }"></c:if>
		</display:table>
	</body>
	<script type="text/javascript">
	function deleteOne(id){
		if(!confirm("确定要删除吗?")){
			return false;
		}
		var params={id:id};
		$.post("editDelete.html",params,function(
				result){
			result=eval("("+result+")");
			if(result.status=="true"||result.status==true){
				alert('成功');
			window.parent.form1.submit();
			}
		});
	}
	function modifyOne(id,method){
			MyWindow.OpenCenterWindow('edit.html?id='+id+'&flag=${param.flag}&method='+method,'modify',500,600);
	}
</script>
</html>
